import request from '@/utils/iasRequest'

export function getUser(val) {
  return request({
    url: '/item/getUser',
    method: 'get',
    params: { userId: val }
  })
}

export function getBuyerIdList() {
  return request({
    url: '/user/getBuyerIdList',
    method: 'get'
  })
}

export function sendCustomEmailToVendor(val, changeType) {
  const _url = changeType === 0 ? '/new-item/sendCustomEmailToVendor' : '/change-item/sendCustomEmailToVendor'
  return request({
    url: _url,
    method: 'post',
    data: val
  })
}

export function queryRcordList(val) {
  return request({
    url: '/record/queryList?objId=' + val,
    method: 'get'
  })
}

export function saveWriteGuide(val) {
  return request({
    url: '/writeGuide/saveWriteGuide',
    method: 'post',
    data: val
  })
}
